Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

add GithubAccess btn to noNewNotifications cell #2085

Closed

Conversation

BrianLitwin
Copy link
Member

@BrianLitwin BrianLitwin commented Aug 11, 2018

Final:

screenshot 2018-08-11 12 16 07

Thanks for feedback!

quick edit: capitalized the A in "Review GitHub access" in 2nd commit

@BrianLitwin BrianLitwin reopened this Aug 11, 2018
guard let url = URL(string: "https://github.com/settings/connections/applications/\(Secrets.GitHub.clientId)")
else { fatalError("Should always create GitHub issue URL") }
// iOS 11 login uses SFAuthenticationSession which shares credentials with Safari.app
UIApplication.shared.open(url, options: [:])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you can omit the options parameter as it defaults to an empty Dictionary.

@@ -42,6 +48,23 @@ final class NoNewNotificationsCell: UICollectionViewCell {
make.top.equalTo(emojiLabel.snp.bottom).offset(Styles.Sizes.tableSectionSpacing)
}

reviewGithubAccessButton.setTitle("Review GitHub Access...", for: .normal)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should at least be a localized string.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Needs this then g2g I think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can we omit the “...”?

@BrianLitwin
Copy link
Member Author

updated! 👍

@BrianLitwin
Copy link
Member Author

BrianLitwin commented Aug 17, 2018

If this looks tacky, we could replace with a question mark icon that triggers an alert or ContextMenu that shows Review GitHub Access + help options? We could also put this in the left hand nav bar button's alert controller under "View all", or possibly give it it's own space on the navigation bar.

@Huddie
Copy link
Collaborator

Huddie commented Sep 13, 2018

#2067

@Huddie
Copy link
Collaborator

Huddie commented Sep 13, 2018

If this is a button I feel like blue makes more sense and fits better stylistically with the app (Like load more). Gray has a disabled or side note feel, blue gives off a button feel. IMO

@rnystrom
Copy link
Member

@BrianLitwin mind resolving conflicts really quick?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants